home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-17 | 57.8 KB | 2,707 lines | [DIFf/DIFf] |
- r(Supplementary Info)
- fCApplication AE fns.doc
- i
- fCClipboard AE fns.doc
- i
- fCDocument AE fns.doc
- i
- fCEnvirons.doc
- i
- fCFileElement.doc
- i
- fConverting To TCL 2.0.doc
- i
- fCPICTGridDirector.doc
- i
- fCSwitchboard AE fns.doc
- i
- fCWindow AE fns.doc
- i
- fResource TMPLs.doc
- i
- fUsing CSaver with CList.doc
- i
- fUsing CSaver.doc
- i
- o
- rApple Event Classes
- fCAppleEvent.cp
- x187929299,103534475
- c0,23
- a#include <AERegistry.h> // •• CW TCL
- c24,631
- e
- fCAppleEvent.h
- x275804591,150468527
- c0,17
- a#include "TCL.h" // •• CW TCL
- c18,109
- e
- fCAppleEventObject.cpp
- x159157317,531256377
- c0,1882
- a#ifdef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- a catch_all_() // •• CW TCL
- a { // •• CW TCL
- a err = gLastError; // •• CW TCL
- a msg = gLastMessage; // •• CW TCL
- a } // •• CW TCL
- a#else // •• CW TCL
- c1883,1892
- a#endif // •• CW TCL
- c1893,2155
- a#ifdef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- a catch_all_() // •• CW TCL
- a { // •• CW TCL
- a err = gLastError; // •• CW TCL
- a } // •• CW TCL
- a#else // •• CW TCL
- c2156,2163
- a#endif // •• CW TCL
- c2164,2215
- a#ifdef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- a catch_all_() // •• CW TCL
- a { // •• CW TCL
- a err = gLastError; // •• CW TCL
- a } // •• CW TCL
- a#else // •• CW TCL
- c2216,2223
- a#endif // •• CW TCL
- c2224,2253
- a#ifdef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- a catch_all_() // •• CW TCL
- a { // •• CW TCL
- a err = gLastError; // •• CW TCL
- a } // •• CW TCL
- a#else // •• CW TCL
- c2254,2261
- a#endif // •• CW TCL
- c2262,2283
- a#ifdef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- a catch_all_() // •• CW TCL
- a { // •• CW TCL
- a err = gLastError; // •• CW TCL
- a } // •• CW TCL
- a#else // •• CW TCL
- c2284,2291
- a#endif // •• CW TCL
- c2292,2315
- a#ifdef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- a catch_all_() // •• CW TCL
- a { // •• CW TCL
- a err = gLastError; // •• CW TCL
- a } // •• CW TCL
- a#else // •• CW TCL
- c2316,2323
- a#endif // •• CW TCL
- c2324,2344
- a#ifdef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- a catch_all_() // •• CW TCL
- a { // •• CW TCL
- a err = gLastError; // •• CW TCL
- a } // •• CW TCL
- a#else // •• CW TCL
- c2345,2352
- a#endif // •• CW TCL
- c2353,2370
- e
- fCAppleEventObject.h
- x466510104,170689210
- c0,20
- a#ifndef __AEOBJECTS__ // •• CW TCL
- a#include <AEObjects.h> // •• CW TCL
- a#endif // •• CW TCL
- a#include "TCL.h" // •• CW TCL: removed <>
- c22,234
- e
- fCAppleEventSender.cpp
- x300293970,263959070
- c0,13
- a#include "Exceptions.h" // •• CW TCL: removed <>
- c15,17
- a#include "CSwitchboard.h" // •• CW TCL: removed <>
- a#include "CWatchDesc.h" // •• CW TCL: removed <>
- a#include "Global.h" // •• CW TCL: added missing header
- c20,294
- e
- fCAppleEventSender.h
- i
- fCFileElement.cpp
- x393777530,77640254
- c0,24
- a#include "TCLpstring.h" // •• CW TCL: added missing header
- c25,230
- e
- fCFileElement.h
- x2124713,389083163
- c0,21
- a//#ifdef BR_USE_NEW_HELPER // •• CW TCL
- a//class CFileElement TCL_AUTO_DESTRUCT_OBJECT , public CAppleEventObject
- a//#else // •• CW TCL
- aclass CFileElement : public CAppleEventObject
- a//#endif // •• CW TCL
- c23,55
- e
- fCProperty.cpp
- x448828269,96316305
- c0,12
- a#ifdef __MWERKS__ // •• CW TCL
- a#include <AERegistry.h> // •• CW TCL: added missing header
- a#endif // •• CW TCL
- c13,150
- e
- fCProperty.h
- x249114375,359604295
- c0,18
- a//#ifdef BR_USE_NEW_HELPER // •• CW TCL
- a//class CProperty TCL_AUTO_DESTRUCT_OBJECT , public CAppleEventObject
- a//#else // •• CW TCL
- aclass CProperty : public CAppleEventObject // •• CW TCL
- a//#endif // •• CW TCL
- c20,47
- e
- fCWatchDesc.cpp
- x37982565,344393039
- c0,13
- a#ifdef __MWERKS__ // •• CW TCL
- a#include "Global.h" // •• CW TCL: added missing header
- a#endif // •• CW TCL
- c14,37
- e
- fCWatchDesc.h
- i
- o
- rBedrock Exception Library
- fBEL #includes.cpp
- i
- rBRCommon
- fBRCommon.h
- i
- fBRMacWin.h
- i
- fBRMath.h
- i
- fBRPriMem.h
- i
- fBRPriStr.h
- i
- fBRStdDef.h
- i
- o
- rBRDebug
- fBRDbgStr.h
- i
- fBRPriDeb.h.bed
- i
- o
- rBRExcLib
- rHeaders
- fBRAutoDe.h
- i
- fBRBedExc.h
- i
- fBRBreakC.h
- i
- fBRDelSta.h
- i
- fBRExcDef.h
- i
- fBRExcept.h
- i
- fBRExcLib.h
- i
- fBRExcLog.h
- i
- fBRExcRun.h
- i
- fBRExcTas.h
- i
- fBRNewHel.h
- i
- fBROnStac.h
- x309072200,253797511
- c0,15
- a#ifdef TCL_POWER_PC // •• CW TCL
- a int _BR_BedIsOnStack(void *); // •• CW TCL
- a#else // •• CW TCL
- c16,17
- c39,39
- a#ifdef __MWERKS__ // •• CW TCL
- c39,39
- aextern "C" {
- c39,39
- a #if USES68KINLINES
- a #pragma parameter __D0 _BR_BedIsOnStack(__A0)
- a #endif
- c21,21
- a NINEWORDINLINE(0x7000, 0xBFC8, 0x6408, 0xB1F8, 0x0908, 0x6202, 0x7001, 0x4880, 0x48C0);
- a
- c23,23
- c39,39
- a#else // #ifdef __MWERKS__ // •• CW TCL
- c39,39
- c42,44
- c21,23
- c39,39
- a#endif // #ifdef __MWERKS__ // •• CW TCL
- c48,48
- c25,154
- e
- fBRPostEx.h
- i
- fBRPriDeb.h
- x242883629,259231245
- c0,107
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c108,108
- a#else // •• CW TCL
- a#define BR_PRIMITIVE_DEBUGGER_BREAK() ((void)0) // •• CW TCL
- a#endif // •• CW TCL
- c109,178
- e
- fBRSExcep.h
- i
- fBRSExcLo.h
- i
- fBRSPostE.h
- i
- fBRTryBlo.h
- i
- o
- o
- rBRRunTyp
- fBRClaInf.h
- x531390750,36021818
- c0,23
- a#ifndef TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL: this macro is irrelevant in
- a// // the DR/3 port, we want any reference
- a// // to it to cause a compilation error
- c24,26
- a#endif // TCL_NO_MULTIPLE_STATIC_INHERITANCE
- c27,173
- a#ifndef TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c174,180
- a#else // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c175,175
- c179,179
- a#endif // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c184,184
- a#ifndef TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c182,183
- a#else // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c182,182
- a _##name##_gAncestors
- a#endif // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c196,196
- a#ifndef TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c245,245
- c190,191
- c188,195
- a#else // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c186,186
- a BR_CClassInfo BR_SHARED_DATA \
- a _##name##_gClassInfo(#name, sizeof(name), _##name##_gAncestors); \
- a BR_CClassInfo& name::BedStaticGetClassInfo() { return _##name##_gClassInfo; } \
- a BR_ClassReference* name::BedGetAncestors() { return _##name##_gAncestors; }
- a#endif // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c202,202
- a#ifndef TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c197,235
- a#else // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c197,197
- a BR_ClassReference BR_SHARED_DATA _BR_CLASS_ANCESTORS(name)[] = \
- c199,203
- a extern BR_CClassInfo _##ancestor##_gClassInfo; \
- a BR_ClassReference BR_SHARED_DATA _BR_CLASS_ANCESTORS(name)[] = \
- c199,199
- a &_##ancestor##_gClassInfo, \
- c200,202
- c210,210
- a extern BR_CClassInfo _##ancestor1##_gClassInfo; \
- a extern BR_CClassInfo _##ancestor2##_gClassInfo; \
- a BR_ClassReference BR_SHARED_DATA _BR_CLASS_ANCESTORS(name)[] = \
- c199,199
- a &_##ancestor1##_gClassInfo, \
- a &_##ancestor2##_gClassInfo, \
- c200,202
- c218,218
- a extern BR_CClassInfo _##ancestor1##_gClassInfo; \
- a extern BR_CClassInfo _##ancestor2##_gClassInfo; \
- a extern BR_CClassInfo _##ancestor3##_gClassInfo; \
- a BR_ClassReference BR_SHARED_DATA _BR_CLASS_ANCESTORS(name)[] = \
- c199,199
- a &_##ancestor1##_gClassInfo, \
- a &_##ancestor2##_gClassInfo, \
- a &_##ancestor3##_gClassInfo, \
- c200,202
- c227,227
- a extern BR_CClassInfo _##ancestor1##_gClassInfo; \
- a extern BR_CClassInfo _##ancestor2##_gClassInfo; \
- a extern BR_CClassInfo _##ancestor3##_gClassInfo; \
- a extern BR_CClassInfo _##ancestor4##_gClassInfo; \
- a BR_ClassReference BR_SHARED_DATA _BR_CLASS_ANCESTORS(name)[] = \
- c199,199
- a &_##ancestor1##_gClassInfo, \
- a &_##ancestor2##_gClassInfo, \
- a &_##ancestor3##_gClassInfo, \
- a &_##ancestor4##_gClassInfo, \
- c200,201
- a#endif // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c265,265
- c237,244
- a#ifndef TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c174,174
- c246,259
- a#else // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c246,247
- a static BR_CClassInfo& BedStaticGetClassInfo(); \
- a static BR_ClassReference* BedGetAncestors();
- a#endif // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c291,291
- c261,331
- e
- fBRClaInf.h.bed
- i
- fBRClaInf.h.tcl
- i
- fBRRunTyp.h
- i
- o
- rBRTaskG
- fBRBedTas.h
- i
- fBRTaskG.h
- i
- o
- rSource
- fBRAutoDe.cpp
- i
- fBRBedExc.cpp
- i
- fBrBedTas.cpp
- i
- fBRBreakC.cpp
- i
- fBRClaInf.cpp
- x531482884,160843861
- c0,92
- a
- a if (ancestors == 0) // •• CW TCL: sometimes ancerstors isn't filled in
- a return FALSE; // •• CW TCL
- c93,136
- e
- fBRDelSta.cpp
- i
- fBRExcept.cpp
- i
- fBRExcLog.cpp
- i
- fBRExcRun.cpp
- i
- fBRExcTas.cpp
- i
- fBRNewHel.cpp
- i
- fBRPostEx.cpp
- i
- fBRPriMem.cpp
- i
- fBRPriStr.cpp
- i
- fBRTryBlo.cpp
- i
- o
- o
- rControl Classes
- fCArrowPopupPane.cp
- i
- fCArrowPopupPane.h
- i
- fCButton.cp
- i
- fCButton.h
- i
- fCCheckBox.cp
- i
- fCCheckBox.h
- i
- fCGroupButton.cpp
- x378000304,464772975
- c0,58
- a if (member(anEnclosure, CGroupButtonEnclosure)) { // •• CW TCL: fix casting bug
- a CWindow *w = (CWindow*) anEnclosure; // •• CW TCL
- a itsGroupEnclosure = (CGroupButtonEnclosure*) w; // •• CW TCL
- a } // •• CW TCL
- c61,158
- a stream >> (short&) groupID; // •• CW TCL: must cast to reference
- c160,161
- e
- fCGroupButton.h
- x432023668,157191324
- c0,0
- a#include "TCL.h" // •• CW TCL: added missing header
- c1,42
- e
- fCGroupButtonEnclosure.cpp
- i
- fCGroupButtonEnclosure.h
- x180100340,38685562
- c0,14
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c15,15
- a#else // •• CW TCL
- aTM_DECLARE_CPtrArray(CGroupButton) // •• CW TCL
- atypedef CPtrArray_CGroupButton CGroupButtonList; // •• CW TCL
- a#endif // •• CW TCL
- c16,31
- e
- fCIconPane.cp
- i
- fCIconPane.h
- i
- fCPopupMenu.cp
- i
- fCPopupMenu.h
- i
- fCPopupPane.cp
- x445732101,160278290
- c0,37
- aTCL_DEFINE_CLASS_D1(CPopupPane, CPane); // •• CW TCL: sometimes need dynamic refs
- c39,39
- c39,366
- a stream >> (CCollaborator*&) itsMenu; // •• CW TCL: must cast to reference
- c368,369
- e
- fCPopupPane.h
- i
- fCRadioControl.cp
- i
- fCRadioControl.h
- i
- fCRadioGroupPane.cp
- x195280440,184651060
- c0,187
- a stream >> (CCollaborator*&) currentStation; // •• CW TCL: must cast to reference
- c189,190
- e
- fCRadioGroupPane.h
- i
- fCStdPopupPane.cp
- x41918582,415775780
- c0,48
- c50,335
- a#ifdef __INSTALL_MENU_HOOK__ // •• CW TCL
- c336,336
- a#else // •• CW TCL
- a newWidth = titleWidth + titleGap + itsMenu->GetWidth() // •• CW TCL
- a + kArrowWidth + kArrowRightInset; // •• CW TCL
- a#endif // •• CW TCL
- c339,339
- c337,685
- a stream >> (CCollaborator*&) itsPopupBox; // •• CW TCL: must cast to reference
- c687,689
- e
- fCStdPopupPane.h
- i
- o
- rCore Classes
- rCore Headers
- fCApplication.h
- x136048323,177489741
- c0,42
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c43,43
- a#else // •• CW TCL
- a#include "CPtrArray.h" // •• CW TCL
- aTM_DECLARE_CPtrArray(CChore) // •• CW TCL
- atypedef CPtrArray_CChore CChoreList; // •• CW TCL
- a#endif // •• CW TCL
- c44,239
- a#ifndef TCL_NO_PATCHES // •• CW TCL
- c2,2
- c244,244
- c241,246
- c2,2
- a#endif // #ifndef TCL_NO_PATCHES // •• CW TCL
- e
- fCArray.h
- i
- fCArrayIterator.h
- i
- fCBartender.h
- i
- fCBureaucrat.h
- i
- fCChore.h
- i
- fCClipboard.h
- i
- fCCollaborator.h
- x514491359,238556033
- c0,13
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- a#define CCollaboratorList CPtrArray_CCollaborator
- a#endif // •• CW TCL
- c15,15
- c14,15
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- aclass CCollaborator; // •• CW TCL
- aCW_Decl_StreamCalls(CCollaborator) // •• CW TCL
- a#endif // •• CW TCL
- c18,18
- c16,69
- e
- fCCollection.h
- i
- fCControl.h
- i
- fCDecorator.h
- i
- fCDesktop.h
- x382519935,490103801
- c0,16
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c17,17
- a#else // •• CW TCL
- aTM_DECLARE_CPtrArray(CWindow) // •• CW TCL
- aTM_DECLARE_CList(CWindow) // •• CW TCL
- atypedef CList_CWindow CWindowList; // •• CW TCL
- a#endif // •• CW TCL
- c18,84
- e
- fCDirector.h
- i
- fCDirectorOwner.h
- x230669666,293325232
- c0,21
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c22,22
- a#else // •• CW TCL
- aTM_DECLARE_CPtrArray(CDirector) // •• CW TCL
- atypedef CPtrArray_CDirector CDirectorList; // •• CW TCL
- a#endif // •• CW TCL
- c23,49
- e
- fCDocument.h
- i
- fCEnvironment.h
- i
- fCEnvirons.h
- x438491764,141564737
- c0,15
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- aclass CEnvirons; // •• CW TCL
- aCW_Decl_StreamCalls(CEnvirons) // •• CW TCL
- a#endif // •• CW TCL
- c18,18
- c16,64
- e
- fCError.h
- i
- fCFile.h
- i
- fCMBarChore.h
- i
- fCMouseTask.h
- i
- fCommands.h
- i
- fConstants.h
- i
- fCPane.h
- i
- fCPaneBorder.h
- x521993175,370672830
- c0,35
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- aclass CPaneBorder; // •• CW TCL
- aCW_Decl_StreamCalls(CPaneBorder) // •• CW TCL
- a#endif // •• CW TCL
- c39,39
- c36,115
- e
- fCPanorama.h
- i
- fCPicture.h
- i
- fCPrinter.h
- i
- fCRunArray.h
- i
- fCScrollBar.h
- i
- fCScrollPane.h
- i
- fCSizeBox.h
- i
- fCSwitchboard.h
- i
- fCTask.h
- i
- fCView.h
- x99354561,386222255
- c0,46
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c47,47
- a#else // •• CW TCL
- aTM_DECLARE_CPtrArray(CView) // •• CW TCL
- aTM_DECLARE_CList(CView) // •• CW TCL
- atypedef CList_CView CViewList; // •• CW TCL
- a#endif // •• CW TCL
- c48,170
- e
- fCVoidPtrArray.h
- i
- fCVoidPtrArrayIterator.h
- i
- fCWindow.h
- i
- fGlobal.h
- i
- o
- rCore Sources
- fCApplication.asm
- x339079643,235419597
- c0,18
- a#ifndef __MWERKS__ // •• CW TCL
- c19,29
- a#endif // #ifndef __MWERKS__ // •• CW TCL
- c30,46
- a#ifdef __MWERKS__ // •• CW TCL
- aasm
- a#endif // •• CW TCL
- c47,48
- a#ifndef __MWERKS__ // •• CW TCL
- c49,50
- a#endif // •• CW TCL: also changed ';' comments to '//'
- a clr.l -(sp) // reserve some space
- a movem.l a0-a5/d0-d7, -(sp) // save the regs
- a move.w 64(sp), d7 // get seg#
- c54,57
- a move.b #kAllocCanFail, -(sp) // this allocation
- a jsr SetAllocation // can fail
- a move.b d0, d6 // save old canFail flag
- c61,62
- a clr.l -(sp) // do a GetResource on
- a move.l #'CODE', -(sp) // the code segment
- c65,66
- a movea.l (sp)+, a3 // save the handle
- c62,62
- a move.b d6, -(sp) // restore old allocation
- c70,73
- a jsr FailNIL // returns if OK
- c68,68
- a move.l origLoadSeg, 56(sp) // store original LoadSeg on stack
- a movem.l (sp)+, a0-a5/d0-d7 // restore regs
- a rts // return to original LoadSeg
- a#ifndef __MWERKS__ // •• CW TCL
- c79,79
- a#endif // •• CW TCL
- c80,82
- e
- fCApplication.cp
- x236347372,124276174
- c0,59
- a#include "TCLpstring.h" // •• CW TCL: added missing header
- c60,92
- a#ifndef __MWERKS__ // •• CW TCL: not needed
- c93,93
- a#endif // ## ifndef __MWERKS__ // •• CW TCL
- c94,503
- a#ifndef TCL_NO_PATCHES // •• CW TCL: okay, mostly no patches
- c504,506
- a#endif // •• CW TCL
- c507,523
- a#ifndef TCL_NO_PATCHES // •• CW TCL
- c524,525
- a#endif // •• CW TCL
- c526,1259
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- c1260,1260
- a#else // •• CW TCL
- a catch_all_() // •• CW TCL
- a#endif // •• CW TCL
- c1261,1261
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- c1262,1265
- a#else // •• CW TCL
- a short err = gLastError; // •• CW TCL
- a if (err != kSilentErr) // •• CW TCL
- a ErrorAlert(err, gLastMessage); // •• CW TCL
- a HiliteMenu(0); // •• CW TCL
- a#endif // •• CW TCL
- c1266,1286
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- c1287,1302
- a#else // •• CW TCL
- a catch_all_() // •• CW TCL
- c1329,1329
- a short err = gLastError; // •• CW TCL
- a if (err != kSilentErr) // •• CW TCL
- a ErrorAlert(err, gLastMessage); // •• CW TCL
- a HiliteMenu(0); // •• CW TCL
- a } // •• CW TCL
- a#endif // •• CW TCL
- c1267,1268
- c1319,1322
- c1309,1332
- a while (iter.Next((void*&) chore))
- c1334,2421
- a while (iter.Next((void*&) doc))
- c2423,2457
- a while (iter.Next((void*&) doc))
- c2459,2465
- a#if defined(__MWERKS__) && !defined(TCL_POWER_PC) \
- a && !defined(TCL_NO_PATCHES) // •• CW TCL
- a#include "CApplication.asm" // •• CW TCL
- a#endif // •• CW TCL
- c2465,2465
- e
- fCArray.cp
- i
- fCArrayIterator.cp
- i
- fCBartender.cp
- i
- fCBureaucrat.cp
- x423204698,305092752
- c0,407
- a stream >> (CCollaborator*&) itsSupervisor; // •• CW TCL: must cast to reference (ARM 5.4)
- c409,414
- e
- fCChore.cp
- i
- fCClipboard.cp
- x46095218,51208012
- c0,41
- a#include "TCLUtilities.h" // •• CW TCL
- c42,889
- e
- fCCollaborator.cp
- x115295655,227346797
- c0,30
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- aTM_DECLARE_CPtrArray(CCollaborator) // •• CW TCL
- aTM_DEFINE_CPtrArray(CCollaborator) // •• CW TCL
- a#else // •• CW TCL
- c31,33
- a#endif // •• CW TCL
- c34,78
- a while (iter.Next((void*&) aDependent)) // •• CW TCL: must cast to reference
- c80,88
- a while (iter.Next((void*&) aProvider)) // •• CW TCL: must cast to reference
- c90,260
- a while (iter.Next((void*&) aDependent)) // •• CW TCL: must cast to reference
- c262,311
- e
- fCCollection.cp
- i
- fCControl.cp
- i
- fCDecorator.cp
- i
- fCDesktop.cp
- x14033706,229445060
- c0,49
- a#include "TCLUtilities.h" // •• CW TCL
- c50,1136
- a return (CWindow*) itsWindows->NthItem(index); // •• CW TCL: added cast
- c1138,1172
- a return (CWindow*) itsWindows->FindItem1(fun, param); // •• CW TCL: added typecast
- c1174,1211
- e
- fCDirector.cp
- i
- fCDirectorOwner.cp
- i
- fCDocument.cp
- x168085748,331599082
- c0,37
- a#include "TCLpstring.h" // •• CW TCL
- c38,1273
- e
- fCEnvironment.cp
- i
- fCEnvirons.cpp
- x213819161,408618949
- c0,37
- a#include "Global.h" // •• CW TCL: added missing header
- c38,234
- e
- fCError.cp
- i
- fCFile.cp
- i
- fCMBarChore.cp
- i
- fCMouseTask.cp
- i
- fCPane.cp
- x372250152,517634574
- c0,19
- a#include "Constants.h" // •• CW TCL: added missing header
- c20,2019
- a stream >> (CCollaborator*&) itsEnclosure; // •• CW TCL: must cast to reference
- c2021,2038
- e
- fCPaneBorder.cp
- i
- fCPanorama.cp
- i
- fCPicture.cp
- i
- fCPrinter.cp
- i
- fCRunArray.cp
- i
- fCScrollBar.cp
- i
- fCScrollPane.cp
- x44455257,460932787
- c0,696
- a stream >> (CCollaborator*&) subview; // •• CW TCL: must cast to reference
- c698,703
- e
- fCSizeBox.cp
- i
- fCSwitchboard.cp
- i
- fCTask.cp
- i
- fCView.cp
- x53752456,474191742
- c0,1302
- a stream >> (CCollaborator*&) view; // •• CW TCL: must cast to reference
- c1304,1305
- e
- fCVoidPtrArray.cp
- i
- fCVoidPtrArrayIterator.cp
- i
- fCWindow.cp
- i
- fGlobalVars.cp
- i
- o
- o
- rDialog Classes
- fCDialog.cp
- x133693018,125795098
- c0,600
- a stream >> (CCollaborator*&) defaultBtn; // •• CW TCL: must cast to reference type
- a stream >> (CCollaborator*&) itsPanorama; // •• CW TCL: (ARM 5.4, p69)
- c603,604
- e
- fCDialog.h
- i
- fCDialogDirector.cp
- x232436939,145467584
- c0,39
- a#include "TCL.h" // •• CW TCL: added missing header
- c40,44
- aTCL_DEFINE_CLASS_M1(CDialogDirector, CDirector) // •• CW TCL: added RTTI info
- c47,47
- c47,47
- c59,59
- c46,146
- a itsGopher = gopherInfo.firstGopher? (CBureaucrat*) (gopherInfo.firstGopher)
- a : (CBureaucrat*) itsDialog; // •• CW TCL: added typecasts
- c151,151
- c279,284
- c155,168
- a#ifdef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- a catch_all_() // •• CW TCL: substitute untyped exceptions
- c170,171
- a if (gLastError != kSilentErr)
- a ErrorAlert(gLastError, gLastMessage);
- c174,174
- a#else // •• CW TCL
- c169,174
- a#endif // •• CW TCL
- c175,276
- a itsGopher = gopherInfo.firstGopher? (CBureaucrat*) (gopherInfo.firstGopher)
- a : (CBureaucrat*) itsDialog; // •• CW TCL: added typecasts
- c281,281
- c149,154
- c285,337
- e
- fCDialogDirector.h
- x63186064,86121510
- c0,26
- a TCL_DECLARE_CLASS;
- c28,28
- c27,46
- e
- fCDialogText.cp
- i
- fCDialogText.h
- i
- fCDLOGDialog.cp
- x203969931,503841338
- c0,47
- a#ifndef __MWERKS__ // •• CW TCL
- a #define PtoCstr(p) p2cstr(p)
- a#endif // •• CW TCL
- c48,49
- a #ifndef __MWERKS__ // •• CW TCL
- c50,50
- a #endif // •• CW TCL
- c51,408
- a return foundView? (CView*) foundView : (CView*) itsPanorama; // •• CW TCL: added typecasts
- c410,889
- e
- fCDLOGDialog.h
- i
- fCDLOGDirector.cp
- i
- fCDLOGDirector.h
- i
- fCIntegerText.cp
- i
- fCIntegerText.h
- i
- o
- rFile Classes
- fCDataFile.cp
- i
- fCDataFile.h
- i
- fCPictFile.cp
- i
- fCPictFile.h
- i
- fCPNTGFile.cp
- i
- fCPNTGFile.h
- i
- fCResFile.cp
- i
- fCResFile.h
- i
- o
- rFW/Tearoffs
- fCCharGrid.cp
- i
- fCCharGrid.h
- i
- fCFWDesktop.cp
- i
- fCFWDesktop.h
- i
- fCGridSelector.cp
- i
- fCGridSelector.h
- i
- fCMenuDefProc.cp
- i
- fCMenuDefProc.h
- i
- fCPaneMDEF.cp
- i
- fCPaneMDEF.h
- i
- fCPatternGrid.cp
- i
- fCPatternGrid.h
- i
- fCSelector.cp
- i
- fCSelector.h
- i
- fCSelectorMDEF.cp
- i
- fCSelectorMDEF.h
- i
- fCTearChore.cp
- i
- fCTearChore.h
- i
- fCTearOffMenu.cp
- i
- fCTearOffMenu.h
- i
- fGenericMDEF.cp
- i
- fGenericMDEF.h
- i
- rWindoid WDEF ƒ
- fWindoidWDEF.c
- i
- fWindoidWDEF.h
- i
- o
- o
- rMore Classes
- fCBitMap.cp
- i
- fCBitMap.h
- x393829702,463503481
- c0,18
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- aclass CBitMap; // •• CW TCL
- aCW_Decl_StreamCalls(CBitMap) // •• CW TCL
- a#endif // •• CW TCL
- c21,21
- c19,70
- e
- fCBitMapPane.cp
- x101386957,276862049
- c0,14
- a#include "CBitMapPane.h" // •• CW TCL: removed <>
- a#include "Global.h" // •• CW TCL: removed <>
- c17,219
- e
- fCBitMapPane.h
- i
- fCStack.cp
- i
- fCStack.h
- i
- fCTextEnvirons.cp
- i
- fCTextEnvirons.h
- i
- o
- rObject I/O
- rHeaders
- fCBufferedStream.h
- x180971000,254244695
- c0,11
- a#include "CStream.h" // •• CW TCL: removed <>
- c13,68
- e
- fCCountingStream.h
- x216268539,371314418
- c0,11
- a#include "CStream.h" // •• CW TCL: removed <>
- c13,40
- e
- fCFileStream.h
- x317632818,314636043
- c0,11
- a#include "CBufferedStream.h" // •• CW TCL: removed <>
- a#include "CDataFile.h"
- c14,50
- e
- fCHandleStream.h
- i
- fCSaver.h
- x422705738,288296256
- c0,16
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- a#include "CSaver.tm.h" // __TEMPLATE__ CSaver.tm.h CSaver.tem
- a // •• CW TCL: macros for compatibility
- a#define CW_Decl_Saver(T) TM_DECLARE_CSaver(T)
- a#define CW_Inst_Saver(T) TM_DEFINE_CSaver(T)
- a#else // •• CW TCL
- c17,58
- c2,2
- a#endif // •• CW TCL
- c2,2
- e
- fCSaver.tem
- i
- fCStream.h
- x522878674,71224321
- c0,17
- a#include <stddef.h> // •• CW TCL: for size_t definition
- c18,166
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c167,176
- a#else // •• CW TCL
- c178,178
- a#define CW_Decl_StreamCalls(T) \
- a CStream& GetObject(CStream&, T*&); \
- a CStream& PutObject(CStream&, T*); \
- a void PutObjectReference (CStream&, T*); \
- a void PutObject1(T* obj, long stream);
- c178,178
- c180,180
- a// template instantiations copied from <CStream.tem>
- c180,180
- a#ifndef MAXCLASSNAMELEN
- a#define MAXCLASSNAMELEN 255
- c13,13
- a#define CW_Inst_StreamCalls(T) \
- aCStream& PutObject (CStream& stream, T* obj) { \
- a if (!stream.PutReference(obj)) { \
- a stream.AddReference(obj); \
- a stream.PutClassName(TCL_CLASSNAME_FROM_POINTER(obj)); \
- a obj->PutTo(stream); \
- a } \
- a return stream; \
- a} \
- a \
- aCStream& GetObject (CStream& stream, T*& obj) { \
- a char name[MAXCLASSNAMELEN+1]; \
- a \
- a stream.GetClassName(name, MAXCLASSNAMELEN); \
- a \
- a if (strlen(name) == 0) \
- a obj = (T*) stream.GetReference(); \
- a else { \
- a obj = (T*) new_by_name(name); \
- a if (obj == NULL) \
- a { \
- a Failure(paramErr, excNewByNameFailed); \
- a } \
- a try_ { \
- a stream.AddReference(obj); \
- a obj->GetFrom(stream); \
- a } \
- a catch_all_() { \
- a delete obj; \
- a obj = NULL; \
- a throw_same_(); \
- a } \
- a end_try_ \
- a } \
- a return stream; \
- a} \
- a \
- avoid PutObjectReference (CStream& stream, T* obj) { \
- a stream.PutObjectReference(obj); \
- a} \
- avoid PutObject1(T* obj, long stream) { \
- a PutObject(* (CStream*) stream, obj); \
- a}
- c186,186
- a#endif // #ifdef TCL_NO_TEMPLATES // •• CW TCL
- c186,186
- c177,190
- e
- fCString.h
- i
- fReference.h
- i
- fStreamResources.h
- i
- z5097,CSaver.tm.h
- // CSaver.tm.h
- //
- // Macro template file
- // Generated by Template Munger
-
-
- #define TM_DECLARE_CSaver(T) \
- class CSaver_ ## T : public CDocument { \
- TCL_DECLARE_CLASS; \
- public: \
- T *itsContents; \
- CSaver_ ## T() { itsContents = NULL; } \
- CSaver_ ## T(Boolean printable); \
- ~CSaver_ ## T(); \
- virtual void NewFile(); \
- virtual void OpenFile(SFReply *macSFReply); \
- virtual Boolean DoSave(); \
- virtual Boolean DoSaveAs(SFReply *macSFReply); \
- virtual void DoRevert(); \
- protected: \
- virtual void MakeNewWindow(void) = 0; \
- virtual void ReadDocument(); \
- virtual void WriteDocument(); \
- virtual void MakeNewContents(void) = 0; \
- virtual void ReadContents(CFileStream *aStream); \
- virtual void WriteContents(CFileStream *aStream); \
- virtual void ContentsToWindow(); \
- virtual void WindowToContents(); \
- virtual void ExistingFile(); \
- virtual OSType NewFileType(); \
- virtual void PositionWindow(); \
- virtual void MakeWindowName(Str255 name); \
- };
-
-
-
- #define TM_DEFINE_CSaver(T) \
- extern CApplication *gApplication; \
- extern CDecorator *gDecorator; \
- extern OSType gSignature; \
- TCL_DEFINE_CLASS_M1(CSaver_ ## T, CDocument); \
- CSaver_ ## T::CSaver_ ## T( \
- Boolean printable) \
- : CDocument(printable) \
- { \
- itsContents = NULL; \
- TCL_END_CONSTRUCTOR \
- } \
- CSaver_ ## T::~CSaver_ ## T() \
- { \
- TCL_START_DESTRUCTOR \
- TCLForgetObject(itsContents); \
- } \
- void CSaver_ ## T::NewFile() \
- { \
- Str255 title; \
- MakeNewWindow(); \
- MakeNewContents(); \
- ContentsToWindow(); \
- PositionWindow(); \
- MakeWindowName(title); \
- itsWindow->SetTitle(title); \
- SetChanged(FALSE); \
- itsWindow->Select(); \
- } \
- void CSaver_ ## T::OpenFile( \
- SFReply *macSFReply) \
- { \
- CDataFile *theFile = NULL; \
- FSSpec spec; \
- theFile = TCL_NEW(CDataFile,()); \
- try_ \
- { \
- theFile->IDataFile(); \
- theFile->SFSpecify(macSFReply); \
- theFile->GetFSSpec(&spec); \
- FailOpen(&spec); \
- theFile->Open(fsRdWrPerm); \
- itsFile = theFile; \
- } \
- catch_all_() \
- { \
- TCLForgetObject(theFile); \
- throw_same_(); \
- } \
- end_try_ \
- ReadDocument(); \
- } \
- void CSaver_ ## T::MakeWindowName( \
- Str255 newName) \
- { \
- Str31 count; \
- if (itsFile != NULL) \
- itsFile->GetName(newName); \
- else \
- { \
- itsWindow->GetTitle(newName); \
- if (Length(newName) == 0) \
- GetIndString(newName, STRcommon, strUNTITLED); \
- NumToString(gDecorator->GetWCount(), count); \
- ConcatPStrings(newName, (unsigned char *)"\p "); \
- ConcatPStrings(newName, count); \
- } \
- } \
- void CSaver_ ## T::PositionWindow() \
- { \
- gDecorator->PlaceNewWindow(itsWindow); \
- } \
- void CSaver_ ## T::ReadContents( \
- CFileStream *aStream) \
- { \
- GetObject(*aStream, (T*) itsContents); \
- } \
- void CSaver_ ## T::ReadDocument() \
- { \
- CFileStream *theStream = NULL; \
- Str255 theName; \
- theStream = NewInputFileStream((CDataFile*) itsFile); \
- try_ \
- { \
- ReadContents(theStream); \
- SetChanged(FALSE); \
- delete theStream; \
- } \
- catch_all_() \
- { \
- delete theStream; \
- throw_same_(); \
- } \
- end_try_ \
- if (itsWindow == NULL) \
- MakeNewWindow(); \
- ContentsToWindow(); \
- PositionWindow(); \
- MakeWindowName(theName); \
- itsWindow->SetTitle(theName); \
- itsWindow->Select(); \
- } \
- void CSaver_ ## T::WriteContents( \
- CFileStream *aStream) \
- { \
- PutObject(*aStream, itsContents); \
- } \
- void CSaver_ ## T::WriteDocument() \
- { \
- CFileStream * volatile theStream = NULL; \
- try_ \
- { \
- gApplication->SetCriticalOperation(TRUE); \
- WindowToContents(); \
- theStream = NewOutputFileStream((CDataFile*) itsFile); \
- WriteContents(theStream); \
- theStream->Close(); \
- SetChanged(FALSE); \
- delete theStream; \
- gApplication->SetCriticalOperation(FALSE); \
- } \
- catch_all_() \
- { \
- delete theStream; \
- gApplication->SetCriticalOperation(FALSE); \
- throw_same_(); \
- } \
- end_try_ \
- } \
- Boolean CSaver_ ## T::DoSave() \
- { \
- if (itsFile == NULL) \
- return DoSaveFileAs(); \
- else \
- { \
- WriteDocument(); \
- return TRUE; \
- } \
- } \
- OSType CSaver_ ## T::NewFileType() \
- { \
- return gApplication->sfFileTypes[0]; \
- } \
- Boolean CSaver_ ## T::DoSaveAs( \
- SFReply *macSFReply) \
- { \
- OSErr theError; \
- CDataFile *theFile = NULL; \
- FSSpec spec; \
- TCLForgetObject(itsFile); \
- theFile = TCL_NEW(CDataFile,()); \
- try_ \
- { \
- theFile->IDataFile(); \
- theFile->SFSpecify(macSFReply); \
- theFile->GetFSSpec(&spec); \
- FailOpen(&spec); \
- itsFile = theFile; \
- if (theFile->ExistsOnDisk()) \
- ExistingFile(); \
- itsFile->CreateNew(gSignature, NewFileType()); \
- theFile->Open(fsRdWrPerm); \
- itsWindow->SetTitle(macSFReply->fName); \
- } \
- catch_all_() \
- { \
- TCLForgetObject(theFile); \
- throw_same_(); \
- } \
- end_try_ \
- itsFile = theFile; \
- return DoSave() ; \
- } \
- void CSaver_ ## T::DoRevert() \
- { \
- TCLForgetObject(itsWindow); \
- TCLForgetObject(itsContents); \
- delete itsContents; \
- itsGopher = this; \
- if (itsFile != NULL) \
- ReadDocument(); \
- else \
- NewFile(); \
- } \
- void CSaver_ ## T::ContentsToWindow() \
- { \
- } \
- void CSaver_ ## T::WindowToContents() \
- { \
- } \
- void CSaver_ ## T::ExistingFile() \
- { \
- itsFile->ThrowOut(); \
- }
-
- o
- rSource
- fCBufferedStream.cp
- x208576433,177168525
- c0,18
- a#include "CBufferedStream.h" // •• CW TCL: removed <>
- c20,20
- a#include "CError.h" // •• CW TCL: removed <>
- a#include "TCLUtilities.h" // •• CW TCL: removed <>
- a#include "Global.h" // •• CW TCL: removed <>
- a#include "StreamResources.h" // •• CW TCL: removed <>
- a#include "Exceptions.h" // •• CW TCL: removed <>
- c26,451
- e
- fCCountingStream.cp
- i
- fCFileStream.cp
- x48190746,530471242
- c0,30
- a#include "CFileStream.h" // •• CW TCL: removed <>
- c32,32
- a#include "CError.h" // •• CW TCL: removed <>
- a#include "TCLUtilities.h" // •• CW TCL: removed <>
- a#include "Global.h" // •• CW TCL: removed <>
- a#include "StreamResources.h" // •• CW TCL: removed <>
- a#include "Exceptions.h" // •• CW TCL: removed <>
- c38,311
- e
- fCHandleStream.cp
- x253842250,534441876
- c0,18
- a#include "CHandleStream.h" // •• CW TCL: removed <>
- c20,20
- a#include "CError.h" // •• CW TCL: removed <>
- a#include "TCLUtilities.h" // •• CW TCL: removed <>
- a#include "Global.h" // •• CW TCL: removed <>
- a#include "StreamResources.h" // •• CW TCL: removed <>
- a#include "Exceptions.h" // •• CW TCL: removed <>
- c26,254
- e
- fCSaver.cp
- x174129995,338772096
- c0,23
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c25,25
- a#endif // •• CW TCL
- e
- fCStream.cp
- x30510677,182738728
- c0,25
- a#ifndef __MWERKS__ // •• CW TCL
- c26,26
- a#else // •• CW TCL
- a#ifndef TCL_POWER_PC // •• CW TCL
- a#include <ThinkSANE.h> // •• CW TCL: Symantec's version of <SANE.h> is different
- a#endif // •• CW TCL: grrr....
- a#endif // •• CW TCL
- c27,33
- a//#include <Pascal.h> // •• CW TCL: <Pascal.h> not used
- c35,37
- c39,914
- a GetObject(*this, (CCollaborator*&) obj); // •• CW TCL: must cast to reference
- c916,1004
- e
- fCString.cpp
- x218598635,480637375
- c0,10
- a#include "TCL.h" // •• CW TCL: added missing header
- c11,172
- e
- o
- o
- rPrecompiled Headers
- o
- rTable Classes
- fCArrayPane.cp
- x130191239,105905681
- c0,278
- a stream >> (CCollaborator*&) itsArray; // •• CW TCL: must cast to reference
- c280,283
- e
- fCArrayPane.h
- i
- fCTable.cp
- x527556286,121287104
- c0,2011
- a#if TCL_CW_VERSION==4 // •• CW TCL
- a saveBorder = new CPaneBorder(*itsScrollPane->GetBorder());
- a#else // •• CW TCL
- c2012,2013
- a#endif // •• CW TCL
- c2014,2257
- a stream >> (CCollaborator*&) itsRows >> (CCollaborator*&) itsCols;
- a // •• CW TCL: must cast to reference
- c2259,2260
- e
- fCTable.h
- i
- fCTableDragger.cp
- i
- fCTableDragger.h
- i
- o
- fTCL #includes.cpp
- x71226469,368803127
- c0,12
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL: optional replacement of BEL
- c13,13
- a#endif // •• CW TCL
- c14,92
- a#ifndef __MWERKS__ // •• CW TCL: already included
- c93,93
- a#endif // •• CW TCL
- c94,122
- a#ifndef TCL_NO_PRECOMPILED_CLASS // •• CW TCL
- c123,131
- a#endif // •• CW TCL
- c132,139
- a#ifndef TCL_NO_PRECOMPILED_CLASS // •• CW TCL
- c140,152
- a#ifndef TCL_NO_PRECOMPILED_WATCHDESC // •• CW TCL
- c153,153
- a#endif // •• CW TCL
- c154,196
- a#endif // TCL_NO_PRECOMPILED_CLASS // •• CW TCL
- c197,199
- e
- rTCL Libraries
- rTCL Library headers
- fCException.h
- x425801894,18067076
- c0,10
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- c15,15
- c11,33
- c2,2
- a#endif // #ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- e
- fExceptions.h
- x523586618,97991376
- c0,11
- a#ifdef TCL_USE_PP_EXCEPTIONS // •• CW TCL: replace header if using PowerPlant exceptions
- a#include "Exceptions_PP.h"
- a#else // •• CW TCL
- c15,15
- c12,20
- a#include "TCLClassInfo.h" // •• CW TCL: removed <>
- c22,70
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c71,73
- a#else // •• CW TCL
- a#define _TCL_DEBUG_CATCH ((void)0);
- a#endif // •• CW TCL
- c74,110
- a#include "BRExcDef.h" // •• CW TCL: removed <>
- c112,343
- c8,8
- a#endif // #ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- e
- fLongCoordinates.h
- i
- fLongQD.h
- i
- fOSChecks.h
- i
- fqsort++.h
- i
- fTBUtilities.h
- i
- fTCL.h
- i
- fTCLClassInfo.h
- x31239216,475724982
- c0,14
- a#ifndef TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL: new problems
- c19,19
- a // •• CW TCL: added prototypes
- c15,15
- a void* _TCLNew##name(); \
- c16,20
- a void* _TCLNew##name##_##T(); \
- c21,25
- a#else // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c34,34
- c15,15
- a void* _TCLNew##name(); \
- c16,16
- a BR_CClassInfo BR_SHARED_DATA \
- a _##name##_gClassInfo(#name, sizeof(name), _##name##_gAncestors); \
- a BR_CClassInfo& name::BedStaticGetClassInfo() { return _##name##_gClassInfo; } \
- a BR_ClassReference* name::BedGetAncestors() { return _##name##_gAncestors; }
- c34,34
- a // for now, there’s no template support...
- c34,34
- a#endif // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c34,34
- c33,33
- c28,150
- a#ifndef TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c151,151
- a#else // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- a#define member(p, T) ((p)->BedVirtualGetClassInfo()->IsKindOf(&T::BedStaticGetClassInfo()))
- a#endif // TCL_NO_MULTIPLE_STATIC_INHERITANCE // •• CW TCL
- c1,1
- c153,153
- e
- fTCLCoordUtil.h
- x435541449,297364550
- c0,10
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c17,17
- c11,45
- c2,2
- a#else // •• CW TCL
- c2,2
- a#define TCLScale(unscaled, scaleFactor) (unscaled * scaleFactor)
- a#define TCLUnscale(scaled, scaleFactor) ((scaled + scaleFactor - 1) / scaleFactor)
- a#define TCLCenter(low, high) ((low + high) >> 1)
- a#define TCLDimension(low, high) (high - low)
- a#define TCLDelta(newValue, oldValue) (newValue - oldValue)
- c2,2
- a#endif // •• CW TCL
- e
- fTCLFolderUtilities.h
- i
- fTCLForceReferences.h
- i
- fTCLNulls.h
- i
- fTCLpstring.h
- i
- fTCLUtilities.h
- i
- z6611,Exceptions_PP.h
- // ______________________________________________________________________
- //
- // Exceptions_PP.h
- // TCL 2.0 CodeWarrior port
- //
- //
-
- #pragma once
-
-
- // ______________________________________________________________________
- //
- // This file stands in the place of the TCL’s Exceptions.h file.
- // It provides a wrapper for PowerPlant’s exception handling routines
- // within the TCL. Most of the TCL macros are implemented; a few
- // that cannot be duplicated are defined to cause compile-time errors.
- //
- // Limitations:
- //
- // * You may not use the typed exception handling which was added
- // in TCL 2.0. The macros catch_, catch_reference_, and
- // catch_no_instance_ are not permitted. You must use
- // catch_all_ instead.
- //
- // * You may not reference the global variables gAskFailure,
- // gBreakFailure, _gTCLBreakCatch, _gTCLBreakFailure, or
- // _gTCLBreakAssert. These variables do not exist in this
- // implementation. The macros which access these variables are
- // implemented.
- //
- // * The PowerPlant header <UException.h> must be installed
- // in the CodeWarrior compiler folder. The file <UException.cp>
- // must be added to the project.
- //
- // * If the __TCL_DEBUG__ macro is defined, the PowerPlant header
- // <UDebugging.h> must also be installed in the CodeWarrior
- // compiler folder. The file <UDebugging.cp> must be added
- // to the project.
- //
- // * Your source may not use the throw_(exception) macro. Error
- // reporting must take place through the standard Fail___ routines.
- // The throw_same_() macro is permitted.
- //
- //
- // Usage notes:
- //
- // * If the __TCL_DEBUG__ macro is defined, the PowerPlant macro
- // Debug_Throw is also defined. This enables the source-level
- // exception debugging mechanism built into the PowerPlant
- // library.
- //
- // * There are two options for handling assertions: You may use
- // the TCL-style assertion-failed dialog, or you may use the
- // PowerPlant-style debugger break. PowerPlant handling is the
- // default. To enable the TCL handling, comment out the macro
- // TCL_SOURCE_ASSERT below.
- //
-
- #define TCL_SOURCE_ASSERT
-
-
- // ______________________________________________________________________
- //
- // bring in the PowerPlant exception library (and a few other definitions)
- //
-
- #ifdef __TCL_DEBUG__
- #define Debug_Throw
- #define Debug_Signal
- #endif
-
- #include <UException.h>
-
- #include <Types.h>
- #include <AppleEvents.h>
-
-
- // ______________________________________________________________________
- //
- // TCL global error variables
- //
-
- extern short gLastError; // last error code that caused failure
- extern long gLastMessage; // last message code associated with failure
-
- #define kSilentErr 1 // pass to Failure to fail without any user alert
-
-
- // ______________________________________________________________________
- //
- // TCL failure routines
- //
-
- pascal void Failure(short error, long message);
- pascal void Fail(short error);
- pascal void FailEvent();
- pascal void FailEventMsg(long message);
-
- pascal void FailMemError();
- pascal void FailResError();
- pascal void FailNIL(void *p);
- pascal void FailOSErr( short error);
- pascal void FailNILRes(void* p);
-
- pascal void Success();
-
- pascal long SpecifyMsg(short strListID, short strIndex);
- pascal void SetFailInfo(short newError, long newMessage);
-
-
- // ______________________________________________________________________
- //
- // exception debugging macros
- //
-
- #ifdef Debug_Signal
-
- #define _TCL_DEBUG_CATCH \
- SignalPStr_("\pEntering catch block")
- #define TCL_BREAK_ON_CATCH(bool) \
- (gDebugSignal = (bool ? debugAction_SourceDebugger : debugAction_Nothing))
- #define TCL_ASK_ON_FAIL(bool) \
- (gDebugSignal = (bool ? debugAction_SourceDebugger : debugAction_Nothing))
- #define TCL_BREAK_ON_ASSERT(bool) \
- (gDebugSignal = (bool ? debugAction_SourceDebugger : debugAction_Nothing))
-
- #else
-
- #define _TCL_DEBUG_CATCH ((void) 0)
- #define TCL_BREAK_ON_CATCH(bool) ((void) 0)
- #define TCL_ASK_ON_FAIL(bool) ((void) 0)
- #define TCL_BREAK_ON_ASSERT(bool) ((void) 0)
-
- #endif
-
-
- #ifdef Debug_Throw
-
- #define TCL_BREAK_ON_FAILURE(bool) \
- (gDebugThrow = (bool ? debugAction_SourceDebugger : debugAction_Nothing))
-
- #else
-
- #define TCL_BREAK_ON_FAILURE(bool) ((void) 0)
-
- #endif
-
-
- // ______________________________________________________________________
- //
- // exception handling macros
- //
-
- #define TRY Try_
-
- #define CATCH \
- Catch_(_PP_Err) \
- char __TCL_propagate = 1;
-
- #define ENDTRY \
- if (__TCL_propagate) \
- Throw_('same'); \
- EndCatch_
-
- #define NO_PROPAGATE \
- __TCL_propagate = 0
-
-
- #define try_ Try_
-
- #define catch_(class, error) ***Error
- #define catch_reference_(class, error) ***Error
- #define catch_no_instance_(class, error) ***Error
-
- #define catch_all_() \
- Catch_(_PP_Err)
-
- #define end_try_ EndCatch_
-
- #define throw_(exception) ***Error
-
- #define throw_same_() \
- Throw_('same') // why not?
-
- #define TCL_EXCEPTION_CLASS ***Error
-
- #define TCL_NEW(class, init) new class##init
-
- #define TCL_END_CONSTRUCTOR
-
- #define TCL_START_DESTRUCTOR
-
- #define TCL_AUTO_DESTRUCT_OBJECT
-
-
- // ______________________________________________________________________
- //
- // Failure() message strings defined by the TCL
- //
-
- enum {
- excMsgNullObject = 1,
- excMsgLookupFailed,
- excNewByNameFailed,
- excPrintJobTooBig,
- excExceedTELimit,
-
- excAEStrTooBig,
- excAEUserCanceled,
- excUnknownException,
- excBadFileType,
-
- excLastTCLException = excBadFileType
- };
-
-
- // ______________________________________________________________________
- //
- // Assertion macros
- //
-
- #ifdef __TCL_DEBUG__
-
- short _TCL_assertion_failed(char *conditionStr, char *fileName, int lineNum);
- void _TCL_CheckHandle(const Handle);
- void _TCL_CheckResource(const Handle);
- void _TCL_CheckPtr(const Ptr);
- void _TCL_CheckObjectPtr(const void *);
- void _TCL_CheckDesc(const AEDesc*);
-
- #ifdef TCL_SOURCE_ASSERT
- #define TCL_ASSERT(condition) Assert_(condition)
- #else
- #define TCL_ASSERT(condition) \
- ((void) ((condition)) || (_TCL_assertion_failed(#condition, __FILE__, __LINE__),1))
- #endif // #ifdef TCL_SOURCE_ASSERT
-
- #define TCL_ASSERT_HANDLE(H) _TCL_CheckHandle((Handle) H)
- #define TCL_ASSERT_RESOURCE(H) _TCL_CheckResource((Handle) H)
- #define TCL_ASSERT_PTR(P) _TCL_CheckPtr((Ptr) P)
- #define TCL_ASSERT_OBJECT_PTR(P) _TCL_CheckObjectPtr(P)
- #define TCL_ASSERT_DESC(P) _TCL_CheckDesc(P)
-
- #else // #ifdef __TCL_DEBUG__
-
- #define TCL_ASSERT(condition) ((void)0)
- #define TCL_ASSERT_HANDLE(H) ((void)0)
- #define TCL_ASSERT_RESOURCE(H) ((void)0)
- #define TCL_ASSERT_PTR(P) ((void)0)
- #define TCL_ASSERT_OBJECT_PTR(P) ((void)0)
- #define TCL_ASSERT_DESC(P) ((void)0)
-
- #endif // #ifdef __TCL_DEBUG__
-
-
- #undef ASSERT
-
- #define ASSERT(condition) TCL_ASSERT(condition)
- o
- rTCL Library sources
- falloc.cp
- x331161373,425383237
- c0,18
- a#ifndef __MWERKS__ // •• CW TCL
- c19,19
- a#endif // •• CW TCL
- c20,23
- a#ifdef __MWERKS__ // •• CW TCL
- a#define TCL_NO_INSPECTOR // •• CW TCL
- a#endif // •• CW TCL
- c27,27
- c24,33
- a#ifdef __MWERKS__ // •• CW TCL: I like the MW implementation better
- a#define OPERATOR_NEW _cw_operator_new
- a#define OPERATOR_DELETE _cw_operator_delete
- aBoolean __MMPrimitiveAllocate = 0;
- c38,38
- a#if TCL_CW_VERSION>2
- a#ifdef TCL_POWER_PC
- a#include <NewPPC.cp>
- a#else
- a#include <New68K.cp>
- a#endif // TCL_POWER_PC
- a#else // TCL_CW_VERSION>2
- a#include <New.cp>
- a#endif // TCL_CW_VERSION>2
- a#endif // __MWERKS__
- c38,38
- c34,38
- a#ifndef __MWERKS__ // •• CW TCL
- c39,48
- a#else // •• CW TCL
- a p = OPERATOR_NEW(objSize); // •• CW TCL
- a#endif // •• CW TCL
- c55,55
- c50,72
- a#ifndef __MWERKS__ // •• CW TCL
- c73,73
- a#else // •• CW TCL
- a OPERATOR_DELETE(objStorage); // •• CW TCL
- a#endif // •• CW TCL
- c63,63
- e
- fExceptions.asm
- x92298649,119445813
- c0,14
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL: don’t use this file
- c18,18
- c15,241
- a#endif // #ifndef TCP_USE_PP_EXCEPTIONS // •• CW TCL
- c2,2
- c2,2
- e
- fExceptions.cp
- x45848174,530601535
- c0,51
- a#ifndef __MWERKS__ // •• CW TCL: not available in CodeWarrior
- c52,52
- a#endif // •• CW TCL
- c53,55
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- c56,56
- c58,58
- a#endif // •• CW TCL
- c59,70
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- c71,87
- a#endif // •• CW TCL
- c88,94
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- c95,96
- a#endif // •• CW TCL
- c97,112
- a#ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL: this stuff is covered by PP
- c113,161
- a#endif // #ifndef TCL_USE_PP_EXCEPTIONS // •• CW TCL
- c162,179
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c180,180
- a#endif // •• CW TCL
- c181,196
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c197,197
- a#endif // •• CW TCL
- c198,213
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c214,214
- a#endif // •• CW TCL
- c215,236
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c237,237
- a#endif // •• CW TCL
- c238,256
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c257,257
- a#endif // •• CW TCL
- c258,309
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c310,310
- a#endif // •• CW TCL
- c311,325
- a#elif defined(TCL_USE_PP_EXCEPTIONS) // •• CW TCL: PP exceptions
- c325,325
- a gLastError = err; // •• CW TCL
- a gLastMessage = message; // •• CW TCL
- a Throw_('err '); // ??? perhaps define a constant
- c327,327
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL: if we got here, there was no handler
- a DebugStr("\pFailure: No handler"); // •• CW TCL
- a#endif // •• CW TCL
- a ErrorAlert(err, message); // •• CW TCL
- a if (gApplication) gApplication->Exit(); // •• CW TCL
- a ExitToShell(); // •• CW TCL
- c327,327
- c326,347
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c348,348
- a#endif // •• CW TCL
- c466,466
- c462,462
- c351,433
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c434,434
- a#endif // •• CW TCL
- c437,437
- c32,32
- c445,445
- c438,463
- a#ifndef TCL_NO_DEBUGGER_CALLS // •• CW TCL
- c464,464
- a#endif // •• CW TCL
- c146,146
- c34,35
- c468,606
- a#ifdef __MWERKS__ // •• CW TCL
- a#define pascal
- a#endif // •• CW TCL
- c607,705
- e
- fLongCoordinates.cp
- i
- fLongQD.cp
- i
- fOSChecks.cp
- x194725325,165592014
- c0,38
- a// #if !defined(TCL_POWER_PC) // •• CW TCL: this *is* useful, folks!
- c40,78
- a// #endif // •• CW TCL
- c80,136
- a#ifdef __MWERKS__ // •• CW TCL
- astatic void AsmCacheFlush() // •• CW TCL
- a ONEWORDINLINE(_CacheFlushTrap); // •• CW TCL
- a#endif // •• CW TCL
- c137,141
- c2,2
- a#ifndef TCL_POWER_PC // •• CW TCL
- a AsmCacheFlush();
- a#else // •• CW TCL
- a CallOSTrapUniversalProc(GetOSTrapAddress(_CacheFlushTrap), kRegisterBased);
- a#endif // •• CW TCL
- a
- c143,144
- e
- fqsort++.cp
- i
- fTBUtilities.cp
- i
- fTCLCoordUtilities.cpp
- i
- fTCLFolderUtilities.cp
- x51707376,463242224
- c0,10
- a#include "TCL.h" // •• CW TCL
- c11,471
- e
- fTCLpstring.cp
- x154155038,140285453
- c0,13
- a//#include <BDC.h> // •• CW TCL: didn’t really need this anyway
- c15,102
- e
- fTCLUtilities.asm
- i
- fTCLUtilities.cp
- i
- o
- o
- fTCL Version.note
- i
- rTemplates
- fCList.cpp
- i
- fCList.h
- x436858680,371746308
- c0,15
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- c21,21
- a#include "CList.tm.h" // __TEMPLATE__ CList.tm.h CList.tem
- a // •• CW TCL: macros for compatibility
- a#define CW_Decl_List(T) TM_DECLARE_CList(T)
- a#define CW_Inst_List(T) TM_DEFINE_CList(T)
- c21,21
- a#else // •• CW TCL
- c21,21
- c16,29
- c2,2
- a#endif // •• CW TCL
- e
- fCList.tem
- x452291692,260980316
- c0,10
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- aTCL_DEFINE_CLASS_D1(CList<T>, CPtrArray<T>) // •• CW TCL
- a#endif // •• CW TCL
- c13,13
- c13,13
- c28,28
- c12,63
- e
- fCListIterator.cp
- i
- fCListIterator.h
- x259111585,509371016
- c0,15
- c2,2
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- a#define TM_DECLARE_CListIterator(T) TM_DECLARE_CPtrArrayIterator(T)
- a#define TM_DEFINE_CListIterator(T) TM_DEFINE_CPtrArrayIterator(T)
- a#define CW_Decl_ListIterator(T) TM_DECLARE_CPtrArrayIterator(T)
- a#define CW_Inst_ListIterator(T) TM_DEFINE_CPtrArrayIterator(T)
- a#endif
- e
- fCList_CView.cpp
- x389682597,345475041
- c0,2
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c4,4
- c3,11
- c2,2
- a#else // TCL_NO_TEMPLATES // •• CW TCL
- c2,2
- a// the CPtrArray<CView> classes are declared in CView.h
- c2,2
- a#ifdef TCL_NO_PRECOMPILED_CLASS // •• CW TCL
- aTM_DECLARE_CPtrArray(CWindow) // •• CW TCL
- aTM_DECLARE_CList(CWindow) // •• CW TCL
- a#endif // •• CW TCL
- c2,2
- aTM_DEFINE_CList(CView) // •• CW TCL
- aTM_DEFINE_CList(CWindow) // •• CW TCL
- c2,2
- a#endif // TCL_NO_TEMPLATES // •• CW TCL
- e
- fCPtrArray.cp
- i
- fCPtrArray.h
- x239546626,418320274
- c0,12
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- a#include "CPtrArray.tm.h" // __TEMPLATE__ CPtrArray.tm.h CPtrArray.tem
- a // •• CW TCL: macros for compatibility
- a#define CW_Decl_PtrArray(T) TM_DECLARE_CPtrArray(T)
- a#define CW_Inst_PtrArray(T) TM_DEFINE_CPtrArray(T)
- c13,13
- a#else // •• CW TCL
- c18,18
- c14,70
- c2,2
- a#endif // •• CW TCL
- e
- fCPtrArray.tem
- x497712413,515835586
- c0,10
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- aTCL_DEFINE_CLASS_D1(CPtrArray<T>, CVoidPtrArray) // •• CW TCL
- a#endif // •• CW TCL
- c13,13
- c24,24
- c12,58
- e
- fCPtrArrayIterator.cpp
- i
- fCPtrArrayIterator.h
- x84413241,188098615
- c0,20
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c21,21
- a#endif // •• CW TCL
- c22,22
- a#ifdef TCL_NO_TEMPLATES // •• CW TCL
- a#include "CPtrArrayIterator.tm.h" // __TEMPLATE__ CPtrArrayIterator.tm.h
- a// •• not yet sure what to do about forward class defn
- a#else // •• CW TCL
- c29,29
- c23,32
- c2,2
- a#endif // •• CW TCL
- e
- fCPtrArray_CChore.cpp
- x279271734,273724484
- c0,2
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c4,4
- c3,9
- c2,2
- a#else // TCL_NO_TEMPLATES // •• CW TCL
- c2,2
- a#ifdef TCL_NO_PRECOMPILED_CLASS // •• CW TCL
- aTM_DECLARE_CPtrArray(CChore) // •• CW TCL
- a#endif // •• CW TCL
- aTM_DEFINE_CPtrArray(CChore) // •• CW TCL
- c2,2
- a#endif // TCL_NO_TEMPLATES // •• CW TCL
- e
- fCPtrArray_CDirector.cpp
- x270739850,317019412
- c0,2
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c4,4
- c3,9
- c2,2
- a#else // TCL_NO_TEMPLATES // •• CW TCL
- c2,2
- a// declared in "CDirectorOwner.h"
- aTM_DEFINE_CPtrArray(CDirector) // •• CW TCL
- c2,2
- a#endif // TCL_NO_TEMPLATES // •• CW TCL
- e
- fCPtrArray_CView.cpp
- x444711567,396007560
- c0,3
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c5,5
- c4,16
- c3,3
- a#else // TCL_NO_TEMPLATES // •• CW TCL
- c3,3
- a//TM_DECLARE_CPtrArray(CCollaborator) // •• CW TCL
- a//TM_DECLARE_CPtrArray(CView) // •• CW TCL: declared in CView.h
- a#ifdef TCL_NO_PRECOMPILED_CLASS // •• CW TCL
- aTM_DECLARE_CPtrArray(CWindow) // •• CW TCL
- a#endif // •• CW TCL
- a//TM_DECLARE_CPtrArray(CGroupButton) // •• CW TCL: declared in CGroupButtonEnclosure.h
- c3,3
- a//TM_DEFINE_CPtrArray(CCollaborator) // •• CW TCL
- aTM_DEFINE_CPtrArray(CView) // •• CW TCL
- aTM_DEFINE_CPtrArray(CWindow) // •• CW TCL
- aTM_DEFINE_CPtrArray(CGroupButton) // •• CW TCL
- c3,3
- a#endif // TCL_NO_TEMPLATES // •• CW TCL
- e
- fCStream.tem
- i
- fCStream_CBitMap.cpp
- x490631420,348567754
- c0,2
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c4,4
- c3,8
- c2,2
- a#else // •• CW TCL
- c2,2
- a#include <string.h> // •• CW TCL
- aCW_Inst_StreamCalls(CBitMap) // •• CW TCL
- c2,2
- a#endif // •• CW TCL
- e
- fCStream_CCollaborator.cpp
- x535514564,296266691
- c0,2
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c4,4
- c3,12
- c2,2
- a#else // •• CW TCL
- c2,2
- a#include <string.h> // •• CW TCL
- aCW_Decl_StreamCalls(CWindow) // •• CW TCL
- c2,2
- aCW_Inst_StreamCalls(CCollaborator) // •• CW TCL
- aCW_Inst_StreamCalls(CView) // •• CW TCL
- aCW_Inst_StreamCalls(CWindow) // •• CW TCL
- c2,2
- a#endif // •• CW TCL
- e
- fCStream_CEnvironment.cpp
- x518521852,326007118
- c0,2
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c4,4
- c3,8
- c2,2
- a#else // •• CW TCL
- c2,2
- a#include <string.h> // •• CW TCL
- aCW_Inst_StreamCalls(CEnvironment) // •• CW TCL
- c2,2
- a#endif // •• CW TCL
- e
- fCStream_CEnvirons.cpp
- x164286842,244569494
- c0,2
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c4,4
- c3,8
- c2,2
- a#else // •• CW TCL
- c2,2
- a#include <string.h> // •• CW TCL
- aCW_Inst_StreamCalls(CEnvirons) // •• CW TCL
- c2,2
- a#endif // •• CW TCL
- e
- fCStream_CPaneBorder.cpp
- x469483124,443388664
- c0,2
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c4,4
- c3,8
- c2,2
- a#else // •• CW TCL
- c2,2
- a#include <string.h> // •• CW TCL
- aCW_Inst_StreamCalls(CPaneBorder) // •• CW TCL
- c2,2
- a#endif // •• CW TCL
- e
- fPutObject1.cpp
- x492085006,119850694
- c0,2
- a#ifndef TCL_NO_TEMPLATES // •• CW TCL
- c4,4
- c3,8
- c2,2
- a#endif // •• CW TCL
- e
- fPutObject1.tem
- i
- z942,CList.tm.h
- // CList.tm.h
- //
- // Macro template file
- // Generated by Template Munger
-
-
- #define TM_DECLARE_CList(T) \
- class CList_ ## T : public CPtrArray_ ## T \
- { \
- public: \
- TCL_DECLARE_CLASS \
- CList_ ## T(short blockSize = 3) : CPtrArray_ ## T(blockSize) {} \
- virtual void *Copy() { return TCL_NEW(CList_ ## T,(*this)); } \
- virtual void PutItems(CStream& stream); \
- virtual void GetItems(CStream& stream); \
- };
-
-
-
- #define TM_DEFINE_CList(T) \
- TCL_DEFINE_CLASS_D1(CList_ ## T, CPtrArray_ ## T) \
- void CList_ ## T::PutItems(CStream& stream) \
- { \
- extern void PutObject1(T*, long); \
- DoForEach1(PutObject1, (long) &stream); \
- } \
- void CList_ ## T::GetItems(CStream& stream) \
- { \
- long num; \
- T* obj; \
- items = (LongHandle) hItems; \
- num = numItems; \
- numItems = 0; \
- try_ \
- { \
- while (num--) \
- { \
- GetObject(stream, obj); \
- Add(obj); \
- } \
- } \
- catch_all_() \
- { \
- DisposeItems(); \
- throw_same_(); \
- } \
- end_try_ \
- }
- z3351,CPtrArray.tm.h
- // CPtrArray.tm.h
- //
- // Macro template file
- // Generated by Template Munger
-
-
- #define TM_DECLARE_CPtrArray(T) \
- class CPtrArray_ ## T : public CVoidPtrArray \
- { \
- public: \
- TCL_DECLARE_CLASS \
- CPtrArray_ ## T(short blockSize = 3); \
- virtual void *Copy() { return TCL_NEW(CPtrArray_ ## T,(*this)); } \
- void IList() {} \
- typedef void (*EachFunc)(T* obj); \
- typedef void (*EachFunc1)(T* obj, long param); \
- typedef Boolean (*TestFunc)(T* obj); \
- typedef Boolean (*TestFunc1)(T* obj, long param); \
- void DisposeAll(); \
- void DisposeItems(); \
- void Add(T* theObject) { CVoidPtrArray::Add(theObject); } \
- void Remove(T* theObject) { CVoidPtrArray::Remove(theObject); } \
- void SetArrayItem(T* theObject, long index) { CVoidPtrArray::SetArrayItem(theObject, index); } \
- Boolean Includes(T* theObject) { return CVoidPtrArray::Includes(theObject); } \
- void DoForEach(EachFunc f) { CVoidPtrArray::DoForEach((vEachFunc)f); } \
- void DoForEach1(EachFunc1 f, long l) { CVoidPtrArray::DoForEach1((vEachFunc1)f,l); } \
- T* FindItem(TestFunc f) { return (T*)CVoidPtrArray::FindItem((vTestFunc)f); } \
- T* FindItem1(TestFunc1 f, long param) { return (T*)CVoidPtrArray::FindItem1((vTestFunc1)f,param); } \
- long Offset(T* theObject) { return CVoidPtrArray::Offset(theObject); } \
- void Append(T* theObject) { CVoidPtrArray::Add(theObject); } \
- void Prepend(T* theObject) { CVoidPtrArray::InsertAt(theObject,1); } \
- void InsertAfter(T* theObject, T* afterObject) { CVoidPtrArray::InsertAfter(theObject, afterObject); } \
- void InsertAt(T* theObject, long index) { CVoidPtrArray::InsertAt(theObject, index); } \
- void BringFront(T* theObject) { CVoidPtrArray::BringFront(theObject); } \
- void SendBack(T* theObject) { CVoidPtrArray::SendBack(theObject); } \
- void MoveUp(T* theObject) { CVoidPtrArray::MoveUp(theObject); } \
- void MoveDown(T* theObject) { CVoidPtrArray::MoveDown(theObject); } \
- void MoveToIndex(T* theObject, long index) { CVoidPtrArray::MoveToIndex(theObject, index); } \
- T* FirstItem(void) { return (T*)CVoidPtrArray::FirstItem(); } \
- T* LastItem(void) { return (T*)CVoidPtrArray::LastItem(); } \
- T* NthItem(long n) { return (T*)CVoidPtrArray::NthItem(n); } \
- long FindIndex(T* theObject) { return CVoidPtrArray::FindIndex(theObject); } \
- T* FirstSuccess(TestFunc testFunc) { return (T*)CVoidPtrArray::FirstSuccess((vTestFunc)testFunc); } \
- T* FirstSuccess1(TestFunc1 testFunc, long param) { return (T*)CVoidPtrArray::FirstSuccess1((vTestFunc1)testFunc,param); } \
- T* LastSuccess(TestFunc testFunc) { return (T*)CVoidPtrArray::LastSuccess((vTestFunc)testFunc); } \
- T* LastSuccess1(TestFunc1 testFunc, long param) { return (T*)CVoidPtrArray::LastSuccess1((vTestFunc1)testFunc, param); } \
- };
-
-
-
- #define TM_DEFINE_CPtrArray(T) \
- TCL_DEFINE_CLASS_D1(CPtrArray_ ## T, CVoidPtrArray) \
- CPtrArray_ ## T::CPtrArray_ ## T(short theBlockSize) \
- : CVoidPtrArray(theBlockSize) \
- { \
- } \
- void CPtrArray_ ## T::DisposeAll() \
- { \
- DisposeItems(); \
- TCLForgetThis(); \
- } \
- void CPtrArray_ ## T::DisposeItems() \
- { \
- for (long i = 0; i < numItems; i++) \
- { \
- T* itemToPurge = (T*) (*items)[i]; \
- (*items)[i] = 0; \
- TCLForgetObject(itemToPurge); \
- long index = i+1; \
- BroadcastChange(arrayDeleteElement, &index); \
- } \
- numItems = 0; \
- if (slots > blockSize) \
- Resize(blockSize); \
- }
- z444,CPtrArrayIterator.tm.h
- // CPtrArrayIterator.tm.h
- //
- // Macro template file
- // Generated by Template Munger
-
-
- #define TM_DECLARE_CPtrArrayIterator(T) \
- class CPtrArrayIterator_ ## T : public CArrayIterator \
- { \
- public: \
- CPtrArrayIterator_ ## T(CPtrArray_ ## T *array, CursorPosition start) \
- : CArrayIterator(array, start) {} \
- Boolean Next(T *&item) { return CArrayIterator::Next(&item); } \
- Boolean Prev(T *&item) { return CArrayIterator::Prev(&item); } \
- };
- o
- rText Classes
- fCAbstractText.cp
- i
- fCAbstractText.h
- i
- fCEditText.cp
- i
- fCEditText.h
- i
- fCStyleTEClipboard.cp
- i
- fCStyleTEClipboard.h
- i
- fCStyleTEEditTask.cp
- i
- fCStyleTEEditTask.h
- i
- fCStyleTEStyleTask.cp
- i
- fCStyleTEStyleTask.h
- i
- fCStyleText.cp
- i
- fCStyleText.h
- i
- fCTextEditTask.cp
- i
- fCTextEditTask.h
- i
- fCTextStyleTask.cp
- i
- fCTextStyleTask.h
- i
- o
- rVisual Architect Library
- fCColorTextEnvirons.cp
- i
- fCColorTextEnvirons.h
- i
- fCFloatDirector.cp
- i
- fCFloatDirector.h
- i
- fCGridMDEF.cp
- i
- fCGridMDEF.h
- i
- fCIconButton.cp
- i
- fCIconButton.h
- i
- fCLine.cp
- i
- fCLine.h
- i
- fCPICTGrid.cp
- i
- fCPICTGrid.h
- i
- fCPICTGridDirector.cp
- i
- fCPICTGridDirector.h
- i
- fCPICTSelector.cp
- i
- fCPICTSelector.h
- i
- fCPictureButton.cp
- i
- fCPictureButton.h
- i
- fCPolyButton.cp
- i
- fCPolyButton.h
- i
- fCRectOvalButton.cp
- i
- fCRectOvalButton.h
- i
- fCRoundRectButton.cp
- i
- fCRoundRectButton.h
- i
- fCSelectorDirector.cp
- i
- fCSelectorDirector.h
- i
- fCShapeButton.cp
- i
- fCShapeButton.h
- i
- fCStaticText.cp
- i
- fCStaticText.h
- i
- fCSubviewDisplayer.cp
- i
- fCSubviewDisplayer.h
- i
- fCSwissArmyButton.cp
- i
- fCSwissArmyButton.h
- i
- fCTearOffDirector.cp
- i
- fCTearOffDirector.h
- i
- fDialogFunctions.cp
- i
- fDialogFunctions.h
- i
- fViewUtilities.cp
- i
- fViewUtilities.h
- i
- o
- z2874,CW TCLHeaders.cp
- //
- // TCL 2.0 CodeWarrior port
- //
- // Precompiled headers
- //
- // Use this file to build the precompiled header file, instead
- // of “TCL #includes.cpp” provided by Symantec.
- //
- // Eric Scouten, 27 May 1994
- //
-
-
- // prevent multiple compilations
-
- #ifndef CW_TCL_HDR
- #define CW_TCL_HDR
-
-
- // use Metrowerks’ standard precompiled header file
-
- #include <MacHeaders.c>
-
- #undef TRUE // redefined in <THINK.h>
- #undef FALSE
-
- #pragma cplusplus on // wonder why this is necessary?
-
-
- //________________________________________________________________________
- //
- // several new conditional compilation macros for the CodeWarrior port
- //
-
- #define TCL_CW_VERSION 4
- // Set this macro to the current release number of CodeWarrior
- // (currently CW/4. As features are added to CodeWarrior, this
- // macro will be used to maintain compatibility with older
- // versions. NOTE: There is no support for compilation under DR/1.
-
- #define TCL_NO_TEMPLATES
- // This macro triggers the macro substitutions for the TCL templated
- // classes (CPtrArray<>, CList<>, helper methods for CStream). This
- // macro must remain defined until CodeWarrior supports templates.
-
- #if TCL_CW_VERSION<4
- // •• The precompiled headers may get too large.
- // •• Unless you have 24MB RAM, you may not be able to
- // •• use the full precompiled headers.
- #define TCL_NO_PRECOMPILED_CLASS
- #endif
- // Needed for compilation under DR/2 since class definitions aren’t
- // permitted in precompiled headers (can be commented out in DR/3).
-
- #if TCL_CW_VERSION>=3
- #define TCL_NO_MULTIPLE_STATIC_INHERITANCE
- #endif
- // Workaround for a new bug (feature-?) in DR/3. A static member field
- // with the same name cannot be multiply inherited. (However, a static member
- // function can be. :) )
-
- #define TCL_NO_DEBUGGER_CALLS
- // Because all the Debugger() calls aren’t trapped by CW’s source-level
- // debugger. It’s just plain annoying to drop into MacsBug all the
- // time (especially in PPC code)!
-
- #define TCL_NO_PATCHES
- // Because LoadSeg_Patch doesn’t seem to work under CW. Applies only
- // to 68K builds.
-
- #define TCL_NO_PRECOMPILED_WATCHDESC
- // Some strange errors occur when precompiling this header.
-
- #if TCL_CW_VERSION>=3
- #define TCL_USE_PP_EXCEPTIONS
- #endif
- // Optional switch to use the PowerPlant exception library instead of Bedrock
- // Exception Library. Requires UException and UDebugging from PowerPlant DR/3.
- // (Added in 1.2 port.)
-
-
- //________________________________________________________________________
- //
- // include the TCL standard headers
- //
-
- #include "TCL #includes.cpp"
-
- #ifndef TCL_NO_PRECOMPILED_CLASS
- #include "CSizeBox.h" // •• CW TCL temporary
- #endif
-
-
- // (dis)allow object I/O (you may comment this out when you pre-compile)
-
- #define TCL_OBJECT_IO
-
-
- // make sure to prevent attempts at including precompiled headers again
-
- #undef TCL_PCH
-
-
- #endif // #ifndef CW_TCL_HDR
- o
-